<?php
//'index'=>'熱門推荐',
/*
$tags = array(
			  'index'=>'熱門分類',
			  'hotkeywords'=>'熱門關鍵字');
*/
$tags = array(
			  'index'=>'每日閱讀');
			  
$categories = array('焦點新聞',
					'科技',
					'網路創業',
					'美食',
					'投資理財',
					'美容',
					'美女寫真');
$default_categories = array(
					'焦點新聞',
					'科技',
					'網路創業',
					'美食',
					'投資理財',
					'美容',
					'美女寫真',
					'未分類');

$sub_category = array(
					array(
									array('url'=>'http://udn.com/udnrss/starsfocus.xml','title'=>'熱門星聞'),
									array('url'=>'http://udn.com/udnrss/BREAKINGNEWS1.xml','title'=>'國內要聞'),
									array('url'=>'http://udn.com/udnrss/international.xml','title'=>'國際焦點'),
									array('url'=>'http://video.chinatimes.com/video-rss.ashx','title'=>'中時影音﹣焦點'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&output=rss','title'=>'Google焦點新聞'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=w&output=rss','title'=>'Google國際新聞'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=n&output=rss','title'=>'Google台灣新聞'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=e&output=rss','title'=>'Google娛樂新聞')														
								  ),
					array(
					 				array('url'=>'http://feeds.feedburner.com/Mobile01','title'=>'Mobile01'),
									array('url'=>'http://chinese.engadget.com/rss.xml','title'=>'癮科技'),
									array('url'=>'http://www.rakunamac.tw/?feed=rss2','title'=>'RakunaMac'),
									array('url'=>'http://feeds.feedburner.com/techorange','title'=>'TechOrange'),
									array('url'=>'http://www.zdnet.com.tw/rss/topic_web.htm','title'=>'ZDNet(Web應用)'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=t&output=rss','title'=>'Google科技新聞')
								  ),
					array(
									array('url'=>'http://feeds.feedburner.com/mr6','title'=>'Mr. 6'),
									array('url'=>'http://feeds.feedburner.com/MrJamie','title'=>'Mr. Jamie'),									
									array('url'=>'http://webman.pixnet.net/blog/feed/rss','title'=>'凱文的網路創業觀察'),
									array('url'=>'http://www.inside.com.tw/feed','title'=>'Inside'),
									array('url'=>'http://feeds2.feedburner.com/mmdays','title'=>'Mr./Ms. Days'),
									array('url'=>'http://www.bnext.com.tw/feed/rss/topicslinks','title'=>'數位時代'),
									array('url'=>'http://feed.feedsky.com/stupid77','title'=>'三十而慄'),
									array('url'=>'http://www.usabilitymax.com/?feed=rss2','title'=>'優使性筆記本'),
									array('url'=>'http://blogsearch.google.com/blogsearch_feeds?hl=zh-TW&q=%E7%B6%B2%E8%B7%AF%E5%89%B5%E6%A5%AD&lr=&ie=utf-8&num=10&output=rss','title'=>'Google網路創業')
								  ),
					array(
					  				array('url'=>'http://www.ipeen.com.tw/RSS/ipeenNewcmmRSS.php','title'=>'愛評網'),
					  				array('url'=>'http://www.wretch.cc/blog/cuisinemap&rss20=1','title'=>'美食地圖'),
									array('url'=>'http://www.wretch.cc/blog/bajenny&rss20=1','title'=>'魔鬼甄與天使嘉'),
									array('url'=>'http://blogsearch.google.com/blogsearch_feeds?hl=zh-TW&q=%E7%BE%8E%E9%A3%9F&lr=&ie=utf-8&num=10&output=rss','title'=>'Google美食')
					  			  ),
					array(
					  				array('url'=>'http://blog.xuite.net/peter.hungwei/blog/rss.xml','title'=>'fish的投資理財世界'),
									array('url'=>'http://www.funddj.com/y/fundblog/rss.aspx','title'=>'fund DJ 理財達人'),
									array('url'=>'http://feeds.feedburner.com/orangeinvest','title'=>'橘子也要理財'),
									array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MCL-INVEST','title'=>'贏家觀念'),
									array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MCL','title'=>'專家專欄'),
								    array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MPM-wealth','title'=>'財訊'),
									array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MPM-winwin','title'=>'今周刊'),
									array('url'=>'http://www.wretch.cc/blog/bonddealer&rss20=1','title'=>'黃國華'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=b&output=rss','title'=>'Google財經新聞')
									
					  			  ),
					array(
					  				array('url'=>'http://whereisjoe.pixnet.net/blog/feed/rss','title'=>'Joe愛美日記'),
									array('url'=>'http://blogsearch.google.com/blogsearch_feeds?hl=zh-TW&q=%E7%BE%8E%E5%AE%B9&lr=&ie=utf-8&num=10&output=rss','title'=>'Google美容')
					  			  ),
					array(
									array('url'=>'http://rss.im.tv/vlog/3285179','title'=>'正妹收集站'),
									array('url'=>'http://blog.xuite.net/netmecc/mj/rss.xml','title'=>'天天看正妹'),
									array('url'=>'http://blog.xuite.net/facewall/blog/rss.xml','title'=>'FaceWall'),
									array('url'=>'http://v520.pixnet.net/blog/feed/rss','title'=>'正妹寫真館'),
									array('url'=>'http://6ewong.blogspot.com/feeds/posts/default?alt=rss','title'=>'正妹日報'),
									array('url'=>'http://www.diggirl.net/hottodayrss.jsp','title'=>'Hot Girls'),
									array('url'=>'http://jpbeautyhouse.blogspot.com/feeds/posts/default','title'=>'美女尤物寫真館'),
									array('url'=>'http://highbeautygirl.blogspot.com/feeds/posts/default','title'=>'高挑美腿美女'),
									array('url'=>'http://blog.xuite.net/ilovebmilk/ABCD/rss.xml','title'=>'美顏賞'),
									array('url'=>'http://ookkk.blogspot.com/feeds/posts/default','title'=>'正妹星球'),
									array('url'=>'http://blog.xuite.net/ingtv01/blog/rss.xml','title'=>'Xuite-正妹牆')
									
								  )
				      
					 );


$default_sub_category = array(
					array(
									array('url'=>'http://udn.com/udnrss/starsfocus.xml','title'=>'熱門星聞'),
									array('url'=>'http://udn.com/udnrss/BREAKINGNEWS1.xml','title'=>'國內要聞'),
									array('url'=>'http://udn.com/udnrss/international.xml','title'=>'國際焦點'),
									array('url'=>'http://video.chinatimes.com/video-rss.ashx','title'=>'中時影音﹣焦點'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&output=rss','title'=>'Google焦點新聞'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=w&output=rss','title'=>'Google國際新聞'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=n&output=rss','title'=>'Google台灣新聞'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=e&output=rss','title'=>'Google娛樂新聞')														
								  ),
					array(
					 				array('url'=>'http://feeds.feedburner.com/Mobile01','title'=>'Mobile01'),
									array('url'=>'http://chinese.engadget.com/rss.xml','title'=>'癮科技'),
									array('url'=>'http://www.rakunamac.tw/?feed=rss2','title'=>'RakunaMac'),
									array('url'=>'http://feeds.feedburner.com/techorange','title'=>'TechOrange'),
									array('url'=>'http://www.zdnet.com.tw/rss/topic_web.htm','title'=>'ZDNet(Web應用)'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=t&output=rss','title'=>'Google科技新聞')
								  ),
					array(
									array('url'=>'http://feeds.feedburner.com/mr6','title'=>'Mr. 6'),
									array('url'=>'http://feeds.feedburner.com/MrJamie','title'=>'Mr. Jamie'),									
									array('url'=>'http://webman.pixnet.net/blog/feed/rss','title'=>'凱文的網路創業觀察'),
									array('url'=>'http://www.inside.com.tw/feed','title'=>'Inside'),
									array('url'=>'http://feeds2.feedburner.com/mmdays','title'=>'Mr./Ms. Days'),
									array('url'=>'http://www.bnext.com.tw/feed/rss/topicslinks','title'=>'數位時代'),
									array('url'=>'http://feed.feedsky.com/stupid77','title'=>'三十而慄'),
									array('url'=>'http://www.usabilitymax.com/?feed=rss2','title'=>'優使性筆記本'),
									array('url'=>'http://blogsearch.google.com/blogsearch_feeds?hl=zh-TW&q=%E7%B6%B2%E8%B7%AF%E5%89%B5%E6%A5%AD&lr=&ie=utf-8&num=10&output=rss','title'=>'Google網路創業')
								  ),
					array(
					  				array('url'=>'http://www.ipeen.com.tw/RSS/ipeenNewcmmRSS.php','title'=>'愛評網'),
					  				array('url'=>'http://www.wretch.cc/blog/cuisinemap&rss20=1','title'=>'美食地圖'),
									array('url'=>'http://www.wretch.cc/blog/bajenny&rss20=1','title'=>'魔鬼甄與天使嘉'),
									array('url'=>'http://blogsearch.google.com/blogsearch_feeds?hl=zh-TW&q=%E7%BE%8E%E9%A3%9F&lr=&ie=utf-8&num=10&output=rss','title'=>'Google美食')
					  			  ),
					array(
					  				array('url'=>'http://blog.xuite.net/peter.hungwei/blog/rss.xml','title'=>'fish的投資理財世界'),
									array('url'=>'http://www.funddj.com/y/fundblog/rss.aspx','title'=>'fund DJ 理財達人'),
									array('url'=>'http://feeds.feedburner.com/orangeinvest','title'=>'橘子也要理財'),
									array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MCL-INVEST','title'=>'贏家觀念'),
									array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MCL','title'=>'專家專欄'),
								    array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MPM-wealth','title'=>'財訊'),
									array('url'=>'http://tw.money.yahoo.com/rss/edbf/d_e_MPM-winwin','title'=>'今周刊'),
									array('url'=>'http://www.wretch.cc/blog/bonddealer&rss20=1','title'=>'黃國華'),
									array('url'=>'http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&topic=b&output=rss','title'=>'Google財經新聞')
									
					  			  ),
					array(
					  				array('url'=>'http://whereisjoe.pixnet.net/blog/feed/rss','title'=>'Joe愛美日記'),
									array('url'=>'http://blogsearch.google.com/blogsearch_feeds?hl=zh-TW&q=%E7%BE%8E%E5%AE%B9&lr=&ie=utf-8&num=10&output=rss','title'=>'Google美容')
					  			  ),
					array(
									array('url'=>'http://rss.im.tv/vlog/3285179','title'=>'正妹收集站'),
									array('url'=>'http://blog.xuite.net/netmecc/mj/rss.xml','title'=>'天天看正妹'),
									array('url'=>'http://blog.xuite.net/facewall/blog/rss.xml','title'=>'FaceWall'),
									array('url'=>'http://v520.pixnet.net/blog/feed/rss','title'=>'正妹寫真館'),
									array('url'=>'http://6ewong.blogspot.com/feeds/posts/default?alt=rss','title'=>'正妹日報'),
									array('url'=>'http://www.diggirl.net/hottodayrss.jsp','title'=>'Hot Girls'),
									array('url'=>'http://jpbeautyhouse.blogspot.com/feeds/posts/default','title'=>'美女尤物寫真館'),
									array('url'=>'http://highbeautygirl.blogspot.com/feeds/posts/default','title'=>'高挑美腿美女'),
									array('url'=>'http://blog.xuite.net/ilovebmilk/ABCD/rss.xml','title'=>'美顏賞'),
									array('url'=>'http://ookkk.blogspot.com/feeds/posts/default','title'=>'正妹星球'),
									array('url'=>'http://blog.xuite.net/ingtv01/blog/rss.xml','title'=>'Xuite-正妹牆')
									
								  ),
					array(
									
								  )
				      
					 );

//echo $encoded = json_encode($categories);
//echo"<pre>"; print_r(json_decode($encoded));echo "</pre>";

$base_path = dirname(__FILE__) . DIRECTORY_SEPARATOR;
$host_path = "http://".$_SERVER['HTTP_HOST']. DIRECTORY_SEPARATOR;
$results_path = $base_path.'results/';
$lib_path = dirname(__FILE__) . DIRECTORY_SEPARATOR .'/lib/';
$like_cache_path = dirname(__FILE__) . DIRECTORY_SEPARATOR .'/lib/files/like_cache.inc';
$beauty_post_cache_path = dirname(__FILE__) . DIRECTORY_SEPARATOR .'/lib/files/beauty_post_cache.inc';
$result_dir = 'results';
$fb_base_url = 'https://graph.facebook.com/';
$fb_auth_url = 'https://graph.facebook.com/oauth/authorize';
$likes_url = 'https://graph.facebook.com/me/likes';

$likes_client_id = '133002930074297';
$beauty_client_id = '137261822975544';

$beauty_posts = unserialize(file_get_contents($beauty_post_cache_path));
define('APP_ID', '206851789327670');
define('APP_SECRET', 'b83c128ce2ed213d0b570e9be3bd2982');
define('REDIRECT_URI', 'http://www.ulikewall.com/');
define('GOOGLE_API_KEY','ABQIAAAA9zTDcrDvWF_hCC8fts1dHBR_am6zaN3nOl2lXQnglWCAppr4lhSNGTIDGpiqUW7YAZN1OA6RNXHVgw');
define('LOGIN_URL', 'http://www.facebook.com/dialog/oauth?');
define('LOGOUT_URL', 'http://m.facebook.com/logout.php?confirm=1&next='.REDIRECT_URI);
define('TOKEN_URL', 'https://graph.facebook.com/oauth/access_token?');
define('GRAPH_URL', 'https://graph.facebook.com/me?');
/*
$beauty_posts_reassign = array();
foreach($beauty_posts as $key=>$beauty_term){
	$beauty_posts_reassign[$beauty_term['id']] = $beauty_term;
}
*/
//echo "<pre>";print_r($beauty_posts);echo "</pre>";

?>
